<?php
use think\facade\Route;
// +-----
// | 首页
// +---------
Route::rule(':version/ajax/Cleanusers',':version.Ajax/Cleanusers');
Route::rule(':version/ajax/doCommit',':version.Ajax/doCommit');
Route::rule(':version/ajax/updateUserCount',':version.Ajax/updateUserCount');
Route::rule(':version/getShowUrl',':version.Index/getShowUrl');
Route::rule(':version/getIndexAll',':version.Index/getIndexAll'); // 首页整合接口
Route::rule(':version/getWechatInfo',":version.Index/getWechatInfo"); // 获取微信鉴权信息
Route::rule(':version/getVersion',":version.Index/getVersion"); // 获取微信鉴权信息
Route::rule(':version/getAboutUs',":version.Index/getAboutUs");

// +-------------
// | 注册、登录
// +-------------
Route::rule(':version/login/getLoginInfo',':version.Login/getLoginInfo'); // 获取登录相关信息
Route::rule(':version/login/telLogin',':version.Login/telLogin'); // 手机号
Route::rule(':version/login/userSnLogin',':version.Login/userSnLogin'); // 会员号登录
Route::rule(':version/login/passSave',':version.Login/passSave'); // 密码修改
Route::rule(':version/login/wechatLogin',':version.Login/wechatLogin'); // 公众号微信登录
Route::rule(':version/login/uniAppLogin',':version.Login/uniAppLogin'); // uniapp版本登录
Route::rule(':version/login/appLogin',':version.Login/appLogin'); // app登录
Route::rule(':version/login/bindTel',':version.Login/bindTel'); // 绑定手机号
Route::rule(':version/login/bindWechat',':version.Login/bindWechat'); // 绑定微信
Route::rule(':version/login/bindUniappWechat',':version.Login/bindUniappWechat'); // 绑定uniapp版本微信
Route::rule(':version/login/bindAppWechat',':version.Login/bindAppWechat'); // 绑定app微信
// +---------------
// | 商城模块
// +------------------
Route::rule(':version/goods/getGoodsList',':version.Goods/getGoodsList'); // 获取产品列表页面
Route::rule(':version/goods/getGoodsShow',':version.Goods/getGoodsShow'); // 获取产品列表页面
Route::rule(':version/goods/getGoodsSpec',':version.Goods/getGoodsSpec'); // 获取产品规格
Route::rule(':version/goods/getSpecPrice',':version.Goods/getSpecPrice'); // 根据规格获取价格和图片
Route::rule(':version/goods/goodsView',':version.Goods/goodsView'); // 商品详情web
// +--------
// | 新闻热点
// +------------
Route::rule(':version/news/getNewsList',':version.News/getNewsList');
Route::rule(':version/news/getNewsShow',':version.News/getNewsShow');
Route::rule(':version/news/getWebShow',':version.News/getWebShow');
Route::rule(':version/news/getWithDrawalRule',':version.News/getWithDrawalRule'); // 提现规则
Route::rule(':version/news/getGiveRule',':version.News/getGiveRule'); // 获取转增规则
Route::rule(':version/news/getPushMsgInfo',':version.News/getPushMsgInfo'); // 获取消息推送详情
Route::rule(':version/news/getPushMsg',':version.News/getPushMsg'); // 获取信息推送记录
Route::rule(':version/news/getWebshow',':version.news/getWebshow');
// +-----------
// | 公共
// +-------------
Route::rule(':version/sendMsg',':version.Login/sendMsg'); // 发送验证码 act register、login、forget、bind、edit
Route::rule(':version/checkMsgCode',':version.User/checkMsgCode'); // 验证短信验证码
Route::rule(':version/searchShipping',':version.Order/searchShipping'); // 查询物流信息
// +---------------
// | 购物车
// +-----------------
Route::rule(':version/car/createCart',':version.Car/createCart'); // 加入购物车/立即购买
Route::rule(':version/car/chanageCart',':version.Car/chanageCart'); // 加入购物车/立即购买
Route::rule(':version/car/getCarList',':version.Car/getCarList'); // 获取购物车列表
Route::rule(':version/car/chanageCarNum',':version.Car/chanageCarNum'); // 购物车数量修改
Route::rule(':version/car/deleteCar',':version.Car/deleteCar'); // 删除购物车数据
Route::rule(':version/car/makeSure',':version.Car/makeSure'); // 立即结算 确认订单
// +----------
// | 个人中心
// +-----------------
Route::rule(':version/user/getUserInfo',':version.User/getUserInfo'); // 获取用户信息
Route::rule(':version/user/getChanageUserInfo',':version.User/getChanageUserInfo'); // 获取用户信息
Route::rule(':version/user/getPosterList',':version.User/getPosterList'); // 海报列表
Route::rule(':version/user/getPosterInfo',':version.User/getPosterInfo'); // 生成推广海报
// 个人资料修改
Route::rule(':version/user/chanageAvatar',':version.User/chanageAvatar'); // 修改个人资料
Route::rule(':version/user/chanageNickname',':version.User/chanageNickname'); // 修改个人资料
Route::rule(':version/user/chanageTel',':version.User/chanageTel'); // 更换手机号
Route::rule(':version/user/chanageSave',':version.User/chanageSave');//
Route::rule(':version/user/checkCardNum',':version.User/checkCardNum'); // 检测身份证是否存在
Route::rule(':version/user/saveCheck',':version.User/saveCheck'); // 提交实名认证信息
Route::rule(':version/user/getBankInfo',':version.User/getBankInfo'); // 获取实名信息
Route::rule(':version/user/chanageBankSave',':version.User/chanageBankSave');
Route::rule(':version/user/getVipOrder',':version.User/getVipOrder');
Route::rule(':version/user/deleteUserSn',':version.User/deleteUserSn');
// 邀请管理
Route::rule(':version/user/getMyTree',':version.User/getMyTree'); // 我的会员
Route::rule(':version/user/chanageLUserSn',':version.User/chanageLUserSn'); // 动态绑定上级
Route::rule(':version/user/ischangesLUserSn',':version.User/ischangesLUserSn'); // 判断是否可以更改上下级
Route::rule(':version/user/changesLUserinfo',':version.User/changesLUserinfo'); // 获取上级用户信息
Route::rule(':version/user/isPUser',':version.User/isPUser'); // 获取上级用户信息
Route::rule(':version/user/delUser',':version.User/delUser'); // 获取上级用户信息
// 我的收益
Route::rule(':version/user/getUserMoney',':version.User/getUserMoney'); // 获取收益
Route::rule(':version/user/getLastMonthPrice',':version.User/getLastMonthPrice'); // 获取我的收益
Route::rule(':version/user/getHistoryMoney',':version.User/getHistoryMoney'); // 获取过去的的业绩记录
// 申请提现
Route::rule(':version/user/withdrawalSave',':version.User/withdrawalSave'); // 提现记录获取
Route::rule(':version/user/getWithdrawalList',':version.User/getWithdrawalList'); // 提现记录获取
// 余额转增
Route::rule(':version/user/moneyChanageSave',':version.User/moneyChanageSave'); // 余额转增保存
Route::rule(':version/user/getMoneyChanageLog',':version.User/getMoneyChanageLog'); // 余额转赠记录
// 地址处理
Route::rule(':version/getArea',':version.User/getArea'); // 获取省市区
Route::rule(':version/user/addressList',':version.User/addressList'); // 地址列表
Route::rule(':version/user/addressInfo',':version.User/addressInfo'); // 地址编辑
Route::rule(':version/user/addressSave',':version.User/addressSave'); // 地址保存
Route::rule(':version/user/addressDelete',':version.User/addressDelete'); // 地址删除
// 订单处理
Route::rule(':version/order/createOrder',':version.Order/createOrder'); // 订单创建
Route::rule(':version/order/getOrderType',':version.Order/getOrderType'); // 订单类型获取
Route::rule(':version/order/getOrderList',':version.Order/getOrderList'); // 订单列表
Route::rule(':version/order/getOrderInfo',':version.Order/getOrderInfo'); // 订单详情
Route::rule(':version/order/getSubOrderInfo',':version.Order/getSubOrderInfo'); // 店铺订单详情
Route::rule(':version/order/goPay',':version.Order/goPay'); // 立即支付
Route::rule(':version/order/cancelOrder',':version.Order/cancelOrder'); // 取消订单
Route::rule(':version/order/searchShipping',':version.Order/searchShipping'); // 查看物流
Route::rule(':version/order/makeSure',':version.Order/makeSure'); // 确认收货
Route::rule(':version/order/getGoodsOrderInfo',':version.Order/getGoodsOrderInfo'); // 获取商品订单
Route::rule(':version/order/refundPaySave',':version.Order/refundPaySave'); // 退款申请提交
Route::rule(':version/order/refundSave',':version.Order/refundSave'); // 退款退货保存
Route::rule(':version/order/getRefundOrderInfo',':version.Order/getRefundOrderInfo'); //
Route::rule(':version/order/createShipping',':version.Order/createShipping');
Route::rule(':version/order/orderGoodsRefundCancel',':version.Order/orderGoodsRefundCancel'); // 撤销申请
Route::rule(':version/order/deleteOrder',':version.Order/deleteOrder'); // 删除订单
Route::rule(':version/order/getRefundReason',':version.Order/getRefundReason'); // 获取申请售后原因
